//
//  Tool.h
//  Jingjibang
//
//  Created by haipeng on 15-3-7.
//  Copyright (c) 2015年 haipeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import "MBProgressHUD.h"

#import "MGConstFile.h"
typedef void (^ALSetsSuccessBlock)(NSMutableArray *assetsArray);
typedef void (^ALSingleSetSuccessBlock)(ALAsset *asset);

@interface Tool : NSObject

+ (void)fetchImageURLsImageArray:(NSArray *)images hub:(MBProgressHUD *)hub withCompleteBlock:(void(^)(NSArray *imageURLs))block;
+ (id)obtainDeviceID;
+ (NSString *)toJSONStr:(id)theData;
+ (NSString *)saveImageToLocalWithImageData:(NSData *)imageData andPath:(NSString *)path;
+ (UIImage *)defaultImage;
+ (BOOL)isNumText:(NSString *)str;
+ (BOOL)isNumTextCeng:(NSString *)str;
+ (BOOL)isAuthCamera;
+ (float)heightForLabelWithStr:(NSString *)str width:(float)width fontSize:(float)fontSize;

+ (void)alsetWithSetUrls:(NSArray *)setUrls setLibary:(ALAssetsLibrary *)alLibrary withSuccessBlock:(ALSetsSuccessBlock)block;
+ (NSMutableArray *)alsetUrlWithSets:(NSArray *)sets;
+ (void)alsetWithSetUrl:(NSString *)urlStr setLibary:(ALAssetsLibrary *)alLibrary withSuccessBlock:(ALSingleSetSuccessBlock)block;
+(void)MoveView:(UIView *)view To:(CGRect)frame During:(float)time;
+ (BOOL)isPureInt:(NSString *)string;
+ (NSString *)toStr:(double)str;


@end
